package org.dxy.trigger.http.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.dxy.api.dto.RegisterEquipmentRequestDto;
import org.dxy.api.dto.UpdateEquipmentRequestDto;
import org.dxy.api.response.R;
import org.dxy.infrastructure.persistent.db.mybatispuls.po.query.EquipmentBasicViewPo;

import java.util.List;

public interface EquipmentApplicationService {

    R<Void> register(RegisterEquipmentRequestDto dto);

    R<Page<EquipmentBasicViewPo>> list(Page<EquipmentBasicViewPo> page, EquipmentBasicViewPo query);

    R<Void> update(Long id, UpdateEquipmentRequestDto dto);

    R<Void> delete(Long id);

    R<Void> batchDelete(List<Long> ids);
}
